﻿using System;
using System.Windows.Forms;

using LazyLib.Combat;
using LazyLib.Wow;

using Frosty.Conf;
using Frosty.Combat;

namespace Frosty
{
    public class Frosty : CombatEngine
    {
        public CombatSequence CombatSequence;
        public PullSequence PullSequence;

        /// <summary>
        ///   Initializes a new instance of the <see cref = "Main" /> class.
        /// </summary>
        public void Main()
        {
            Ini.Initialize();
        }

        /// <summary>
        ///   Called when the bot starts.
        /// </summary>
        public override void BotStarted()
        {
            
        }

        public override string Name
        {
            get { return "Frosty (Frost DK)"; }
        }

        /// <summary>
        ///   Opens the Config Panel
        /// </summary>
        public override Form Settings()
        {
            return new Settings();
        }

        /// <summary>
        ///   Combats the specified target.
        /// </summary>
        public override void RunningAction()
        {
            if (!ObjectManager.MyPlayer.IsMounted)
            {
                
            }
        }

        /// <summary>
        ///   Combats the specified target.
        /// </summary>
        /// <param name = "target">The target.</param>
        /// <returns></returns>
        public override void Combat(PUnit target)
        {
            CombatSequence.Combat(target);
        }

        /// <summary>
        ///   Pulls the specified target.
        /// </summary>
        /// <param name = "target">The target.</param>
        /// <returns></returns>
        public override PullResult Pull(PUnit target)
        {
            return PullSequence.Pull(target);
        }

    }

}
